<?php /* Smarty version Smarty-3.1.17, created on 2014-09-20 16:16:20
         compiled from ".\templates\admin.tpl" */ ?>
<?php /*%%SmartyHeaderCode:858053a928b92b1ea2-16610335%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'dde4406728b78ad8acb77d025ffd08e41bf138dd' => 
    array (
      0 => '.\\templates\\admin.tpl',
      1 => 1411222550,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '858053a928b92b1ea2-16610335',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.17',
  'unifunc' => 'content_53a928b95503a2_07409838',
  'variables' => 
  array (
    'name' => 0,
    'name_u' => 0,
    'uid' => 0,
    'myvar' => 0,
    'uid_u' => 0,
    'login' => 0,
    'login_u' => 0,
    'password' => 0,
    'password_u' => 0,
    'admin' => 0,
    'admin_u' => 0,
    'daily' => 0,
    'break' => 0,
    'weekly' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_53a928b95503a2_07409838')) {function content_53a928b95503a2_07409838($_smarty_tpl) {?><?php  $_config = new Smarty_Internal_Config("test.conf", $_smarty_tpl->smarty, $_smarty_tpl);$_config->loadConfigVars("setup", 'local'); ?>
<div id="loading" style="display:none">ładowanie..</div>
<div id="ground">
	<div id="top">
		System Rejestracji Czasu Pracy
	</div>
	<div id="menu">
		<!-- Użytkownik: <?php echo $_SESSION['name'];?>
 <br /> --!>
		>
		<a href="?" id="calendar_href">kalendarz</a>|
		<a href="#" id="vacation">urlop</a>|
		<a href="#" id="info">informacje</a>|
		<a href="#" id="work"></a>|
		<a href="#" id="users">użytkownicy</a>|
		<a href="#" id="logout">wyloguj</a>
	</div>
	<div id='external-events'>
		<div class='external-event'>urlop wypoczynkowy</div>
		<div class='external-event'>urlop na żądanie</div>
		<div class='external-event'>urlop bezpłatny</div>
		<div id="save"><button id="save_vacation">zapisz urlopy</button></div>
	</div>
	<div id="calendar">
	<span id="calendar_user">Kalendarz użytkownika: <select class="choose_user">
	<?php  $_smarty_tpl->tpl_vars['name_u'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['name_u']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['name']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['name_u']->key => $_smarty_tpl->tpl_vars['name_u']->value) {
$_smarty_tpl->tpl_vars['name_u']->_loop = true;
?>
	<option <?php if ($_smarty_tpl->tpl_vars['name_u']->value==$_SESSION['name']) {?>selected="selected"<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['name_u']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['name_u']->value;?>
</option>
	<?php } ?>
	</select></span>
	</div>
	<div id="info_div">
	<br />
	Imię, Nazwisko: <input type="text" id="name" maxlength="14"> <br />
	Numer szafki pracowniczej: <input type="text" id="locker" maxlength="4" onkeydown="return isNumber(event);"> <br />
	Dostępne żetony w automacie: <input type="text" id="machine" maxlength="4" onkeydown="return isNumber(event);"> <br /> <br />
	<button id="rfid_reader">odczytaj karte</button>
	<button id="rfid_save">zapisz dane</button>
	</div>
	<div id="rfid_dialog" title="Odczytywanie danych">
		<br />
		<div id="progressbar"></div><br />
		Przyłóż kartę do czytnika..
	</div>
	<div id="rfid_save_dialog" title="Zapisywanie danych">
		<br />
		<div id="progressbar_save"></div><br />
		Przyłóż kartę do czytnika..
	</div>
	<div id="users_div">
	<br />
	<table class=users-table>
	<tr>
	<th>UID:</th>
	<th>Login:</th>
	<th>Hasło:</th>
	<th>Imię Nazwisko:</th>
	<th>Administrator:</th>
	</tr>
	<tr>
	<th>
	<form id="users_save">
	<?php $_smarty_tpl->tpl_vars['myvar'] = new Smarty_variable(0, null, 0);?>
	<?php  $_smarty_tpl->tpl_vars['uid_u'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['uid_u']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['uid']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['uid_u']->key => $_smarty_tpl->tpl_vars['uid_u']->value) {
$_smarty_tpl->tpl_vars['uid_u']->_loop = true;
?>
	<?php $_smarty_tpl->tpl_vars['myvar'] = new Smarty_variable($_smarty_tpl->tpl_vars['myvar']->value+1, null, 0);?>
	<input type=text name="uid_<?php echo $_smarty_tpl->tpl_vars['myvar']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['uid_u']->value;?>
"> <br />
	<?php } ?>
	</th>
	<th>
	<?php $_smarty_tpl->tpl_vars['myvar'] = new Smarty_variable(0, null, 0);?>
	<?php  $_smarty_tpl->tpl_vars['login_u'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['login_u']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['login']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['login_u']->key => $_smarty_tpl->tpl_vars['login_u']->value) {
$_smarty_tpl->tpl_vars['login_u']->_loop = true;
?>
	<?php $_smarty_tpl->tpl_vars['myvar'] = new Smarty_variable($_smarty_tpl->tpl_vars['myvar']->value+1, null, 0);?>
	<input type=text name="login_<?php echo $_smarty_tpl->tpl_vars['myvar']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['login_u']->value;?>
"> <br />
	<?php } ?>
	</th>
	<th>
	<?php $_smarty_tpl->tpl_vars['myvar'] = new Smarty_variable(0, null, 0);?>
	<?php  $_smarty_tpl->tpl_vars['password_u'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['password_u']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['password']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['password_u']->key => $_smarty_tpl->tpl_vars['password_u']->value) {
$_smarty_tpl->tpl_vars['password_u']->_loop = true;
?>
	<?php $_smarty_tpl->tpl_vars['myvar'] = new Smarty_variable($_smarty_tpl->tpl_vars['myvar']->value+1, null, 0);?>
	<input type=password name="password_<?php echo $_smarty_tpl->tpl_vars['myvar']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['password_u']->value;?>
"> <br />
	<?php } ?>
	</th>
	<th>
	<?php $_smarty_tpl->tpl_vars['myvar'] = new Smarty_variable(0, null, 0);?>
	<?php  $_smarty_tpl->tpl_vars['name_u'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['name_u']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['name']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['name_u']->key => $_smarty_tpl->tpl_vars['name_u']->value) {
$_smarty_tpl->tpl_vars['name_u']->_loop = true;
?>
	<?php $_smarty_tpl->tpl_vars['myvar'] = new Smarty_variable($_smarty_tpl->tpl_vars['myvar']->value+1, null, 0);?>
	<input type=text name="name_<?php echo $_smarty_tpl->tpl_vars['myvar']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['name_u']->value;?>
"> <br />
	<?php } ?>
	</th>
	<th>
	<?php $_smarty_tpl->tpl_vars['myvar'] = new Smarty_variable(0, null, 0);?>
	<?php  $_smarty_tpl->tpl_vars['admin_u'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['admin_u']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['admin']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['admin_u']->key => $_smarty_tpl->tpl_vars['admin_u']->value) {
$_smarty_tpl->tpl_vars['admin_u']->_loop = true;
?>
	<?php $_smarty_tpl->tpl_vars['myvar'] = new Smarty_variable($_smarty_tpl->tpl_vars['myvar']->value+1, null, 0);?>
	<input type=hidden name="admin_<?php echo $_smarty_tpl->tpl_vars['myvar']->value;?>
" value="off">
	<input type=checkbox id=checkbox name="admin_<?php echo $_smarty_tpl->tpl_vars['myvar']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['admin_u']->value=="on") {?>checked<?php }?>> <br />
	<?php } ?>
	<th>
	</form>
	<?php $_smarty_tpl->tpl_vars['myvar'] = new Smarty_variable(0, null, 0);?>
	<?php  $_smarty_tpl->tpl_vars['uid_u'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['uid_u']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['uid']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['uid_u']->key => $_smarty_tpl->tpl_vars['uid_u']->value) {
$_smarty_tpl->tpl_vars['uid_u']->_loop = true;
?>
	<?php $_smarty_tpl->tpl_vars['myvar'] = new Smarty_variable($_smarty_tpl->tpl_vars['myvar']->value+1, null, 0);?>
	<button class="delete_user" id="<?php echo $_smarty_tpl->tpl_vars['uid_u']->value;?>
" name="<?php echo $_smarty_tpl->tpl_vars['myvar']->value;?>
">usuń użytkownika</button><br/>
	<?php } ?>
	</th>
	</th>
	</tr>
	</table>
	<div id="add_user_dialog" title="dodaj użytkownika">
	<br />
	<form id="new_user">
		<fieldset>
		<label for="email">Login:</label>
		<input type="text" name="login" id="login" class="text ui-widget-content ui-corner-all"><br />
		<label for="password">Hasło:</label>
		<input type="password" name="password" id="password" class="text ui-widget-content ui-corner-all"><br />
		<label for="name">Imie Nazwisko:</label>
		<input type="text" name="name" id="name" class="text ui-widget-content ui-corner-all" maxlength="14"><br />
		<label for="name">Numer szafki:</label>
		<input type="text" name="locker" id="locker" class="text ui-widget-content ui-corner-all" maxlength="4" onkeydown="return isNumber(event);"><br />
		<label for="name">Żetony (automat):</label>
		<input type="text" name="coffee" id="coffee" class="text ui-widget-content ui-corner-all" maxlength="4" onkeydown="return isNumber(event);"><br />
		<label for="admin">Administrator:</label><br />
		<input type=hidden name="admin" value="off">
		<input type="checkbox" name="admin" id="admin" class="text ui-widget-content ui-corner-all">
		</fieldset>
	</form>
	</div>
	<button id="save_users">zapisz użytkowników</button>
	<button id="add_user">dodaj użytkownika</button>
	</div>
	<div id="bottom">
		<B>Podsumowanie pracy:</B> <br />
		&nbsp Dzisiaj: <span id="today"><?php echo $_smarty_tpl->tpl_vars['daily']->value;?>
</span> <br />
 		&nbsp Przerwy: <span id="break"><?php echo $_smarty_tpl->tpl_vars['break']->value;?>
</span> <br />
		&nbsp Tygodniowo: <span id="weekly"><?php echo $_smarty_tpl->tpl_vars['weekly']->value;?>
</span> <br />
	</div>
</div>
<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
